package com.aspose.cells.b.a.g.a;

public class ze {
   private static final int[] a = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 3, 4, 0, 0, 0, 4, 4, 5, 5, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 4, 0, 0, 0};
   private com.aspose.cells.b.a.g.a.a.zc b;

   public ze(String var1) {
      this.b = com.aspose.cells.b.a.g.a.a.zc.a((String)var1, 32);
   }

   public ze(String var1, int var2) {
      int var3 = com.aspose.cells.b.b.zc.a(var2);
      this.b = com.aspose.cells.b.a.g.a.a.zc.a(var1, 32 | var3);
   }

   public zc a(String var1) {
      return new zc(this.b, var1);
   }

   public zc a(String var1, int var2) {
      return new zc(this.b, var1, var2);
   }

   public static zc a(String var0, String var1) {
      return (new ze(var1)).a(var0);
   }

   public static zc a(String var0, String var1, int var2) {
      return (new ze(var1, var2)).a(var0);
   }

   public zd b(String var1) {
      return a(this, var1);
   }

   public String[] c(String var1) {
      return this.b.a((CharSequence)var1, -1);
   }

   public static zd a(ze var0, String var1) {
      return a(var0.b, var1);
   }

   public static zd a(com.aspose.cells.b.a.g.a.a.zc var0, String var1) {
      zd var2 = new zd();
      int var3 = 0;
      int var4 = var1.length();

      while(var3 < var4) {
         com.aspose.cells.b.a.g.a.a.zb var5 = var0.a((CharSequence)var1);
         if (!var5.a(var3)) {
            break;
         }

         var2.a(new zc(var5, true, var1));
         var3 = var5.end();
         if (var3 == var5.start()) {
            break;
         }
      }

      return var2;
   }

   public static boolean b(String var0, String var1, int var2) {
      ze var3 = new ze(var1, var2);
      return var3.d(var0);
   }

   public boolean d(String var1) {
      com.aspose.cells.b.a.g.a.a.zb var2 = this.b.a((CharSequence)var1);
      return var2.a();
   }

   public String b(String var1, String var2) {
      return this.b.a((CharSequence)var1).a(var2);
   }
}
